<template>
  <div class="vmui-dialog-white-mask">
    <div class="vmui-toast" :class="{'exist-icon': icon}">
      <i class="iconfont vmui-icon" :class="icon || 'vmui-no-icon'"></i>
      <p class="vmui-toast-content" v-html="message"></p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    message: String,
    icon: String,
    timeout: {
      type: Number,
      default: 2000
    },
    callback: Function
  }
}
</script>

<style lang="scss" scoped>
  @import "../style";

  @import "styleMix";
  @include vmui-toast;
</style>
